package com.tensquare.article.repository;

import com.tensquare.article.pojo.Comment;
import org.springframework.data.mongodb.repository.MongoRepository;

import java.util.List;
import java.util.Optional;

public interface CommentRepository extends MongoRepository<Comment,String> {

    List<Comment> findAllByIsdelete(Integer isDelete);

    List<Comment> findAllByArticleidAndIsdelete(String article,Integer isDelete);
}
